package cn.tedu.kaifanlav1.business.controller;

import cn.tedu.kaifanlav1.base.response.JsonResult;
import cn.tedu.kaifanlav1.business.pojo.dto.BusQuery;
import cn.tedu.kaifanlav1.business.pojo.vo.BusinessVO;
import cn.tedu.kaifanlav1.business.service.BusinessService;
import cn.tedu.kaifanlav1.user.pojo.dto.UserQuery;
import cn.tedu.kaifanlav1.user.pojo.vo.UserVO;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@Slf4j
@RestController
@RequestMapping("/v1/sin/")
public class BusinessController {
    @Autowired
    BusinessService businessService;
    @GetMapping("select")
    public JsonResult selectBus(BusQuery busQuery){
        log.debug("查询用户:BusQuery={}", busQuery);
        List<BusinessVO> list = businessService.selectBus(busQuery);
        return JsonResult.ok(list);

    }

   /* @GetMapping("select")
    public JsonResult selectBus(BusQuery busQuery) {
        log.debug("查询用户:BusQuery={}", BusQuery);
        List<BusinessVO> list = BusinessService.selectBus(BusQuery);
        return JsonResult.ok(list);

    }

    */

}
